<template>
    <group-paper-component
        ref="groupPaperComponent"
        :init-param="queryData"
        :is-show="true"
    >
    </group-paper-component>
</template>

<script>
import groupPaperComponent from "@/views/models/exam/component/groupPaperComponent";
export default {
    name: "GroupNormalExam",
    components: {
        groupPaperComponent
    },
    data() {
        return {
            queryData: {
                paperType: "normalExam",
                school: "other"
            }
        };
    },
    watch: {
        $route: function(to, from) {
            // 拿到目标参数 to.query.id 去再次请求数据接口
            if (from.name === "AddPaper") {
                this.$refs.groupPaperComponent.search();
            }
        }
    }
};
</script>
